<template>
  <el-scrollbar>
    <div class="monitor-box">
      <div class="monitor-left">
        <div>
          <span>T</span>
          <span>36.5</span>
        </div>
        <div>
          <span>RR</span>
          <span>20</span>
        </div>
        <div>
          <span>HR</span>
          <span>56</span>
        </div>
        <div>
          <span>SpO2</span>
          <span>98</span>
        </div>
        <div>
          <span>BP</span>
          <span>80/130</span>
        </div>
      </div>
      <div class="monitor-model">
        <img src="@/assets/home/model.png" class="person"/>
        <img src="@/assets/home/bottom.png" class="bottom"/>
      </div>
    </div>
  </el-scrollbar>
</template>
<script setup>
const prop = defineProps({});
</script>
<style lang="scss" scoped>
.monitor-box {
  display: flex;
  margin-top: 18px;
  height: calc(100% - 36px - 18px);
  // overflow-y: auto;
  .monitor-left {
    text-align: right;
    padding: 12px 10px 20px 0;
    position: relative;
    width: 90px;
    height: 363px;
    border-radius: 8px;
    background: url('@/assets/home/border-bg.png') no-repeat;
    background-size: 100% 100%;

    div {
      display: flex;
      flex-direction: column;
      font-size: 16px;
      &:not(:last-child) {
        margin-bottom: 15px;
      }
      span {
        font-weight: 700;
        color: #fff;
        &:nth-of-type(1) {
          color: rgba(255, 255, 255, 0.5);
        }
      }
    }
  }
  .monitor-model {
    position: relative;
    .person {
      width: 210px;
      // height: 100%;
      margin-top: -15px;
      object-fit: contain;
      margin-left: 20px;
    }
    .bottom{
      position: absolute;
      width: 300px;
      object-fit: contain;
      left: -26px;
      bottom: -30px;
    }
  }
}
</style>
